<template>
  <div class="collage">
    <div class="header">
      <div class="ICon" @click="changeRouter">
        <Icon type="icon-xitongfanhui"></Icon>
      </div>
    </div>
    <div class="ifCon">
      <iframe :src="routerQuery" frameborder="0"></iframe>
    </div>
    <!-- <div class="scoreBody">
      <h4>院校分数线</h4>
      <div class="table">
        <table>
          <tr>
            <th>年份</th>
            <th>招生类型</th>
            <th>最低分/位次</th>
            <th>人数</th>
            <th>批次线差</th>
          </tr>
        </table>
      </div>
    </div> -->
  </div>
</template>

<script>
import Icon from "@/components/Icon.vue";
import HomeHeader from "@/components/Header.vue";
export default {
  components: {
    HomeHeader,
    Icon,
  },
  data() {
    return {
      routerQuery:
        "https://m.baidu.com/s?from=1013966u&word=" + this.$route.params.id,
    };
  },
  // mounted() {
  //   let base = "https://m.baidu.com/s?from=1013966u&word=东北师范大学";
  //   // console.log(base + this.$route.query.id);
  //   this.routerQuery = base;
  // },
  methods: {
    changeRouter() {
      this.$router.back();
    },
  },
};
</script>

<style lang="less" scoped>
.collage {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 40px;
    background-color: #80caff;
  }
  .ifCon {
    width: 100vw;
    // height: 450px;
    height: 85vh;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    iframe {
      width: 104%;
      height: 100%;
      // height: 450px;
    }
  }
  .scoreBody {
    padding: 10px 20px 0px;
  }
}
</style>